﻿@using Orchard.Widgets.Models

@{
    var viewModel = Model;
    var widgets = (IEnumerable<WidgetPart>) viewModel.Widgets;
}


<h1>@T("Manage {0} zone", viewModel.Zone)</h1>

<ul>
    <li>
        <a href="#">@T("Would you like to add a widget?")</a>
        @if (widgets.Any()) {
            foreach (WidgetPart widget in widgets) {
                
            }
        }
    </li>
    @*<li>
        <a href="#">@T("Create a new layer specific to this page")</a>
    </li>*@
</ul>

@*<ul>
                    @foreach (LayerPart layerPart in (IEnumerable<LayerPart>)Model.Layers) {
                        <li>
                            @Html.Link(T("Add new Widget to the {0} zone in the {1} layer", (string)Model.ZoneName, layerPart.Name).Text, Url.Action("ChooseWidget", "Admin", new { area = "Orchard.Widgets", layerId = layerPart.Id, zone = Model.ZoneName, returnUrl = ViewContext.RequestContext.HttpContext.Request.ToUrlString() }))
                        </li>
                    }
                    </ul>*@